export default {
  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: '治明标准化服务|治历明时|赋效赋能',
    htmlAttrs: {
      lang: 'en'
    },
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
    './assets/css/main.scss',
    './assets/css/page-transletion.css',
    'element-ui/lib/theme-chalk/index.css'
  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    {
      src: "@/plugins/element-ui",
      ssr: true  // 关闭ssr
    },
    // '@/plugins/request',
  ],
  vendor:['element-ui'],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [
  ],


  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
    // https://go.nuxtjs.dev/bootstrap
    'bootstrap-vue/nuxt',
    // https://go.nuxtjs.dev/axios
    '@nuxtjs/axios',
    // https://go.nuxtjs.dev/content
    '@nuxt/content',
  ],

  // Axios module configuration: https://go.nuxtjs.dev/config-axios
  axios: {
    // baseURL: '192.168.59.1',
    proxy: true,
  },
  proxy: {
    '/api': {
      // target: 'http://8.135.106.48:10010/api/', // 本地测试接口域名
      target: 'http://localhost:10010/api/', // 服务器接口域名
      pathRewrite: {
        '^/api': '/', // 把 /api 替换成 /
      },
      changeOrigin: true // 表示是否跨域

    }
  },


  content: {},

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
    babel: {
      compact: false,
      "plugins": [
        [
          "component",
          {
            "libraryName": "element-ui",
            "styleLibraryName": "theme-chalk"
          }
        ]
      ]
    }

  },


}
